<template>
	<view>
		<view class="load-page" v-if="!isShow">
			<u-loading-page :loading='!isShow' iconSize='14' fontSize='12' loading-color="#BE2225"
				loadingText='加载中'></u-loading-page>
		</view>
	</view>
</template>

<script>
	export default {
		name:"load-page",
		data() {
			return {
				isShow:false,
			};
		},
		props:{
			loading:{
				default:false,
			}
		},
		watch:{
			loading(val){
				this.isShow = val
			}
		}
	}
</script>

<style lang="scss">
.load-page {
		position: fixed;
		width: 100%;
		height: 100%;
		left: 0;
		top: 0;
		z-index: 10;
	}
</style>